<?php

namespace App\Services;

class Request
{
    //请求成功
    public static function success($code, $message, $data)
    {
        return ['code' => $code, 'message' => $message, 'data' => $data];
    }

    //请求失败
    public static function fail($code, $message, $data)
    {
        return ['code' => $code, 'message' => $message, 'data' => $data];
    }
}